package com.house.rent.ui.adapter;

import android.content.Context;

import com.house.rent.R;
import com.house.rent.entity.UserEntity;

/**
 * @author neo.duan
 * @date 2019-09-19 20:47
 * @desc 请输入文件描述
 */
public class IdCardAdapter extends XBaseAdapter<UserEntity> {

    public IdCardAdapter(Context context) {
        super(context);
    }

    @Override
    protected int getLayoutResId(int viewType) {
        return R.layout.item_id_card;
    }

    @Override
    protected void convert(XBaseViewHolder helper, UserEntity entity) {
        helper.setImageUrl(R.id.iv_img, "data:mime/type;base64," + entity.getIdCardPhotoFront());

        helper.setText(R.id.tv_nick_name, entity.getNickName());
        helper.setText(R.id.tv_mobile, entity.getMobile());
    }
}
